<?php require 'view/admin/template/header.html'; ?>
    <div id="main">
    <?php require 'view/admin/template/left.html'; ?>
        <div id="rside">
            <table>
                <tr>
                    <td>序号</td>
                    <td>日期</td>
                    <td>标题</td>
                    <td>分类</td>
                    <td>回复</td>
                    <td>操作</td>
                </tr>
                <?php foreach($res as $v) {; ?>
                <tr>
                    <td><?php echo $v['art_id']; ?></td>
                    <td><?php echo date('Y-m-d',$v['pubtime']); ?></td>
                    <td><a href="#"><?php echo $v['title']; ?></a></td>
                    <td><?php echo $v['cat_name']; ?></td>
                    <td><span class="badge"><?php echo $v['comm']; ?></span></td>
                    <td>
                        <a href="artedit.php?id=<?php echo $v['art_id']; ?>">编辑</a>
                        / <a href="artdel.php?id=<?php echo $v['art_id']; ?>">删除</a>
                    </td>
                </tr>
                <?php } ?>
            </table>
            <div id="pagebar">
                Pages:&nbsp;
                <?php foreach($pages as $k=>$v){ if($k==$currentPage) {echo $k;} else {?>
                <a href="artlist.php?<?php echo $v; ?>"><?php echo $k; ?></a>
                <?php }}?>
            </div>
        </div>
    </div>
<?php require 'view/admin/template/footer.html'; ?>